package day05.homework.extend;

/*
    利用for循环计算：求8的阶乘8!，并输出
 */
public class ForTwo {
    public static void main(String[] args) {
        int sum = 1;
        for (int i=1;i<=8;i++){
            sum *=i;
        }
        System.out.println("sum="+sum);
    }
}
